/*
 * @Author: QiuZongXi 897956138@qq.com
 * @Date: 2022-05-30 16:13:50
 * @LastEditors: QiuZongXi 897956138@qq.com
 * @LastEditTime: 2022-09-04 00:43:46
 * @FilePath: \vue2_cli\src\api\settlementManagement\peripheralMaterial\peripheralMaterial.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
//周材调拔结算 接口 邱宗禧
import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
// import { selectDataClient } from '@/utils/common'
const request = {
    //获取table页面列表
    getpaymentList (params) {
        return httpPost({
            url: '/turnoversettle/allocationSettlement/listByEntity',
            params
        })
    },
    //添加调拔结算基本信息
    adddbjs (params) {
        return httpPost({
            url: '/turnoversettle/allocationSettlement/create',
            params
        })
    },
    chonghongdan2 (params) {
        return httpGet({
            url: '/turnoversettle/allocationSettlement/initRed',
            params
        })
    },
    //获取基本信息
    getjbxx (params) {
        return httpGet({
            url: '/turnoversettle/allocationSettlement/findById',
            params
        })
    },
    //根据单据ID查询结算明细
    getjsmx (params) {
        return httpGet({
            url: '/turnoversettle/allocationSettlement/getDtlList',
            params
        })
    },
    //修改基本信息
    setjbxx (params) {
        return httpPost({
            url: '/turnoversettle/allocationSettlement/update',
            params
        })
    },
    //更新结算明细
    updatejxmx (params) {
        return httpPost({
            url: '/turnoversettle/allocationSettlement/updateDtl',
            params
        })
    },
    //删除
    deldbjs (params) {
        return httpGet({
            url: '/turnoversettle/allocationSettlement/delete',
            params
        })
    },
    //发起审核
    faqishenhe (params) {
        return httpPost({
            url: '/turnoversettle/audit/audit',
            params
        })
    },
    //提交审核
    tijiaoshenhe (params) {
        return httpPost({
            url: '/turnoversettle/audit/commit',
            params
        })
    },
    //作废
    zuofei (params) {
        return httpPost({
            url: '/turnoversettle/audit/nullify',
            params
        })
    },
    //撤回
    chehui (params) {
        return httpPost({
            url: '/turnoversettle/audit/undoAudit',
            params
        })
    },

    //获取按钮状态 公共接口
    getanniu (params) {
        return httpPost({
            url: '/turnoversettle/audit/getCurrentUnitInfo',
            params
        })
    },
    //获取审核历史
    getshenhelishi (params) {
        return httpPost({
            url: '/turnoversettle/audit/getAuditHistory',
            params
        })
    },
    //测试弹窗
    ceshitanchuang (params) {
        return httpPost({
            url: '/turnover/allocation/getSettleDtl',
            params
        })
    },
    //初始化红单
    initRed (params) {
        return httpGet({
            url: '/turnoversettle/allocationSettlement/initRed',
            params
        })
    },
    //查询截止上期末累计结算金额
    getPrevAmount (params) {
        return httpGet({
            url: '/turnoversettle/allocationSettlement/getPrevAmount',
            params
        })
    },

}

export default request
